<?php

class testmail extends controller{
    function testmail()
    {
        parent::controller();
    }
    function mail()
    {
        $config['protocol'] = 'sendmail';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = TRUE;

//$this->email->initialize($config);
        $this->load->library('email');

        $this->email->from('deepu.hp@gmail.com', 'Deepak');
        $this->email->to('deepu.hp@gmail.com');
        //$this->email->cc('sreeni.keloth@healthaddconsultancy.com');
        //$this->email->bcc('them@their-example.com');

        $this->email->subject('Email Test');
        $this->email->message('Testing the email class.');

        $this->email->send();

        echo $this->email->print_debugger();
    }
    /*
    function dump_country()
    {
        $this->load->model('readbatchcard_model');
        $this->readbatchcard_model->dump_country();
    }
    */
}
?>